package com.sl.au.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.sl.au.entity.CustomerPriceView;


public interface ExdeCustomerPriceViewRepository extends JpaRepository<CustomerPriceView, String>{
	@Query("select u from CustomerPriceView u where u.customerId = ?1 ")
	Page<CustomerPriceView> getPriceList(String key,Pageable pageable);
	
	
	@Query("select count(u) from CustomerPriceView u where u.customerId =?1 ")
	long getAllPriceCount(String key);
}
